package com.example.mes.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;

@Data
public class WorkerInfo implements Serializable {
    private int id;
    private String username;
    private int departmentId;
    private String mail;
    private Long phone;
    private String sex;
    private String IdCard;
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private int deleted;
    @Version
    @TableField(fill = FieldFill.INSERT)
    private int version;
}
